package com.quanyan.place.service;

import com.quanyan.api.APIResponse;
import com.quanyan.place.entity.TbBizPlaceAttachLabel;
import com.quanyan.place.entity.TbLabel;
import com.quanyan.place.entity.vo.PlaceLabelVo;
import com.quanyan.place.entity.vo.ReqPlaceLabel;

import java.util.List;
import java.util.Map;

/**
 * Created by yangyun on 2017/5/25.
 */
public interface PlaceLabelService {

    /**
     * 通过标签类型查询标签
     * @param labelType
     * @return
     */
    List<TbLabel> getLabelByType(Byte labelType);

    /**
     * 获取场馆标签
     * @param placeId
     * @param labelType
     * @return
     */
    List<TbBizPlaceAttachLabel> getPlaceLabel(Integer placeId, Byte labelType);

    List<PlaceLabelVo> getPlaceLabelVo(Integer placeId, Byte labelType);

    /**
     * 根据标签Id查询标签
     * @param labelId
     * @return
     */
    TbLabel getTbLabelById(Integer labelId);

    APIResponse saveOrUpdatePlaceLabel(ReqPlaceLabel reqPlaceLabel);

    Map<Byte,List<TbLabel>> getPlaceCommonLabel();


    Map<Byte,List<TbBizPlaceAttachLabel>> getPlaceLabelByPlaceId(Integer placeId);
}
